<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script> 
<script>  
function fortype(){
	$.layer({
		type : 1,
		title : '选择调用类型', 
		closeBtn : [0 , true],
		border : [10 , 0.3 , '#000', true],
		area : ['390px','190px'],
		page : {dom:"#fortype"}
	});
} 
</script>
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" /> 
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<title>后台管理</title>
</head>
<body class="body_ifm">
<div id="fortype"  style="display:none; ">

    <div id="infobox"> 
		
			<div class="datacall_chlose">
				{yun:}foreach item=data key=k from=$datacall{/yun}
				<a href="{yun:}searchurl type=$k m=datacall c=add{/yun}" class="admin_cz_yl">{yun:}$data.0{/yun}</a>
				{yun:}/foreach{/yun}
			</div> 
    
  </div>
</div>
<div id="wname" style="display:none;width:250px; "> 
	<div style="height:80px;" class="job_box_div">  
	   <div class="job_box_inp">
		<table class="table_form "style="width:100%">
			<tr><td class='ui_content_wrap'><div style="width:250px;">复制（CTRL+C）以下内容并添加到模板中</div></td></tr> 
			<tr><td><div style="text-align:center"><input type="text" name="position" id='copy_url' class="input-text" size='45'/></div></td></tr> 
		</table> 
	   </div>
	</div>
</div> 

<div class="infoboxp"> 
<div class="admin_new_tip">
<a href="javascript:;" class="admin_new_tip_close"></a>
<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
<div class="admin_new_tip_list_cont">
<div class="admin_new_tip_list">请按照范本格式上传 xls文件，其他文件无法读取。</div>
</div>
</div>
<div class="clear"></div>
<div class="admin_new_search_box">
<div class="admin_new_select">
<a  href="javascript:void(0);" class="admin_new_cz_tj" onclick="fortype()" style="margin-left:0px;">+ 添加调用</a>
</div>
<div class="clear"></div>
<div style="height:10px;"></div>

<div class="table-list">
    <div class="admin_table_border">
	<iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe> 
        <form action="" name="myform" method="get"target="supportiframe">
        <input type="hidden" name="pytoken"  id='pytoken' value="{yun:}$pytoken{/yun}">
        <table width="100%">
            <thead>
                <tr class="admin_table_top">
                    <th align="left" width="400">调用名称</th>
                    <th align="left">调用类别</th>
                    <th align="left">调用条数</th>
                    <th align="left">上次更新时间</th>
                    <th align="left">代码调用</th>
                    <th class="admin_table_th_bg">操作</th>
                </tr>
            </thead>
            <tbody>
            {yun:}foreach item=v key=key from=$rows{/yun}
            {yun:}assign var="type" value=$v.type{/yun}
                <tr align="left">
                    <td align="left" class="td1"><span>{yun:}$v.name{/yun}</span></td> 
                    <td align="left" class="ud">{yun:}$datacall.$type.0{/yun}</td>
                    <td align="left" class="ud">{yun:}$v.num{/yun}</td>
                    <td align="left" class="ud">{yun:}$v.lasttime|date_format:"%Y-%m-%d"{/yun}</td>
                    <td class="ud" align="left">
                    <a href="javascript:void(0);" onClick="copy_url('内部调用','{yun\:}datacall id={yun:}$v.id{/yun}{\/yun}')" class="admin_cz_bj">内部调用</a> | 
                    <a href="javascript:void(0);" onClick="copy_url('外部调用','&lt;script src=\'{yun:}$config.sy_weburl{/yun}/index.php?m=call&id={yun:}$v.id{/yun}\' language=\'javascript\'&gt;&lt;/script&gt;')" class="admin_cz_bj">外部调用</a>
                    </td>
                    <td align="center"> 
                    <a href="index.php?m=datacall&c=preview&id={yun:}$v.id{/yun}"class="admin_new_c_bth admin_new_c_bthsh">预览</a>&nbsp;&nbsp;
                     <a href="javascript:void(0)" onClick="layer_del('确定要更新数据？','index.php?m=datacall&c=make&id={yun:}$v.id{/yun}')"class="admin_new_c_bth admin_new_c_bthsh">更新</a>
                     <a href="index.php?m=datacall&c=add&id={yun:}$v.id{/yun}&type={yun:}$v.type{/yun}" class="admin_new_c_bth">修改</a>
                     <a href="javascript:void(0)" onClick="layer_del('确定要删除？', 'index.php?m=datacall&c=del&id={yun:}$v.id{/yun}');" class="admin_new_c_bth admin_new_c_bth_sc">删除</a></div></div></td> 
              </tr>
          {yun:}/foreach{/yun}
          {yun:}if $total > $config.sy_listnum {/yun}
			<tr>
				{yun:}if $pagenum==1{/yun}
					<td colspan="3"> 从 1 到 {yun:}$config.sy_listnum {/yun} ，总共 {yun:}$total{/yun} 条</td>
				{yun:}else if $pagenum > 1 && $pagenum < $pages{/yun}
					<td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$pagenum * $config.sy_listnum{/yun} ，总共 {yun:}$total{/yun} 条</td>
				{yun:}else if $pagenum == $pages{/yun}
					<td colspan="3"> 从 {yun:}($pagenum-1) * $config.sy_listnum + 1{/yun} 到 {yun:}$total{/yun} ，总共 {yun:}$total{/yun} 条</td>
				{yun:}/if{/yun}
				<td colspan="4" class="digg">{yun:}$pagenav{/yun}</td>
			</tr>
		{yun:}/if{/yun}
          </tbody>
          </table>
        </form>
    </div>
</div>
</div>
</body>
</html>